package com.bwstudio.demo.auth.ui.error;

import com.bwstudio.common.response.IResponseCode;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ResponseCodeEnum implements IResponseCode{

	PARAM_ERROR(40003, "参数有误"), 
	USERNAME_OR_PASSWORD_ERROR(40004, "用户名或密码不正确"),
	REFRESH_TOKEN_INVALID(2004, "Refresh Token 不合法");

	private int code;

	private String message;

	@Override
	public int getCode() {
		return this.code;
	}

	@Override
	public String getMessage() {
		return this.message;
	}

}
